package com.hr.system.entity.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@ColumnWidth(25)
public class SysUserDto {
    @ExcelProperty("序号")
    private Integer id;
    @ExcelProperty("用户名")
    private String userName;
    @ExcelIgnore
    private String password;

    @ExcelProperty("编号")
    private String workcode;
    @ExcelProperty("类别")
    private String type;
    @ExcelProperty("手机号")
    private String phone;
    @ExcelProperty("角色")
//    private List<String> roles;
    private String roleName;

    @ExcelIgnore
    private Integer roleId;

    @ExcelIgnore
    private Integer state;

    @ExcelIgnore
    private Integer deptId;
    @ExcelIgnore
    private String empName;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    //创建时间
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    //更新时间
    private Date updateTime;
}
